package com.xbs.controller.hitchhiking;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.xbs.controller.base.BaseServlet;

@WebServlet("/hitchhiking/hitchpay")
public class HitchPayServlet extends BaseServlet{
@Override
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
	
	Double money = Double.valueOf(req.getParameter("money"));
	req.setAttribute("money", money);
	//获取页面填写的信息
	String onehour=req.getParameter("onehour");
	String twohour=req.getParameter("twohour");
	String uname = req.getParameter("uname");
	String uidcard = req.getParameter("uidcard");
	String uemail = req.getParameter("uemail");
	String orderid = req.getParameter("orderid");
	String paytime = req.getParameter("paytime");
	String gettime = req.getParameter("gettime");
	String returntime = req.getParameter("returntime");
	
	//保存到session中
	req.getSession().setAttribute("onehour",onehour);
	req.getSession().setAttribute("twohour",twohour );
	req.getSession().setAttribute("uname",uname );
	req.getSession().setAttribute("uidcard",uidcard );
	req.getSession().setAttribute("uemail",uemail);
	req.getSession().setAttribute("orderid",orderid);
	req.getSession().setAttribute("paytime",paytime);
	req.getSession().setAttribute("gettime",gettime);
	req.getSession().setAttribute("returntime",returntime);
	//转发	
	forward("businessview/llp_order/hitchpay");
	}
}
